<!DOCTYPE html>
<html>

<head>
    <include file="Share:meta" />
    <script src="../Public/plugins/jsFormat/jsFormat.js"></script>
    <script src="../Public/plugins/citySelect/jsAddress.js"></script>
</head>

<body class="hold-transition skin-blue sidebar-mini">
    <div class="wrapper">
        <include file="Share:header" />
        <include file="Share:left" />
        <!-- Content Wrapper. Contains page content -->
        <div class="content-wrapper">
            <!-- Content Header (Page header) -->
            <section class="content-header">
                <h1>订单<small></small></h1>
                <ol class="breadcrumb">
                    <li><a href="#"><i class="fa fa-dashboard"></i> Home</a></li>
                    <li class="active"></li>
                </ol>
            </section>
            <!-- Main content -->
            <section class="content">
                <div class="box box-info">
                    <div class="box-header with-border">
                        <h3 class="box-title"><empty name="Think.get.osid">创建体验产品订单<else />修改体验产品订单</empty></h3>
                    </div>
                    <!-- /.box-header -->
                    <!-- form start -->
                    <form class="form-horizontal" action="" method="post" enctype="multipart/form-data">
                        <input type="hidden" name="osid" value="{$info.osid}" />
                        <input type="hidden" name="order_no" value="{$info.order_no}" />
                        <div class="box-body">
                            <div class="form-group">
                                <label for="inputEmail3" class="col-sm-2 control-label">收货人</label>
                                <div class="col-sm-10">
                                    <input type="text" name="shipping_name" id="inputEventCode" class="form-control" value="{$info.shipping_name}" placeholder="" required="required" autocomplete="off">
                                </div>
                            </div>
                            <div class="form-group">
                                <label for="inputEmail3" class="col-sm-2 control-label">联系电话</label>
                                <div class="col-sm-10">
                                    <input type="text" name="shipping_mobile" id="inputEventCode" class="form-control" value="{$info.shipping_mobile}" placeholder="" required="required" autocomplete="off">
                                </div>
                            </div>
                            <div class="form-group">
                                <label for="inputEmail3" class="col-sm-2 control-label">省/市/县</label>
                                <div class="col-sm-10">
                                    <div id="city">
                                        <div class="col-sm-4 npl">
                                            <select name="shipping_province" id="proviceId" class="form-control" required="required">
                                                <option value=""></option>
                                            </select>
                                        </div>
                                        <div class="col-sm-4">
                                            <select name="shipping_city" id="cityId" class="form-control" required="required">
                                                <option value=""></option>
                                            </select>
                                        </div>
                                        <div class="col-sm-4 npr">
                                            <select name="shipping_distinct" id="districtId" class="form-control" required="required">
                                                <option value=""></option>
                                            </select>    
                                        </div>   
                                    </div>
                                    
                                </div>
                            </div>
                            <div class="form-group">
                                <label for="inputEmail3" class="col-sm-2 control-label">地址</label>
                                <div class="col-sm-10">
                                    <input type="text" name="shipping_address" id="inputEventCode" class="form-control" value="{$info.shipping_address}" placeholder="" required="required" autocomplete="off">
                                </div>
                            </div>
                            <div class="form-group">
                                <label for="name" class="col-sm-2 control-label">名片类型</label>
                                <div class="col-sm-10">
                                    <select name="dict_id" id="dict_id" class="form-control" required="required">
                                    	<option value="">-- 请选择 --</option>
                                    	<volist name="kind" id="vo">
                                        <option value="{$vo.id}" rel-code="{$vo.code}">{$vo.value}</option>
                                        </volist>
                                    </select>
                                </div>
                            </div>
                            
                            <div class="form-group">
                                <label for="inputEmail3" class="col-sm-2 control-label">金额</label>
                                <div class="col-sm-10">
                                    <input type="number" id="dict_code" class="form-control" value="" autocomplete="off" disabled="disabled">
                                </div>
                            </div>
                            <div class="form-group">
                                <label for="inputEmail3" class="col-sm-2 control-label">数量</label>
                                <div class="col-sm-10">
                                    <input type="number" name="count" id="inputEventCode" class="form-control" value="" required="required" autocomplete="off">
                                </div>
                            </div>
                            
                        </div>
                        <!-- /.box-body -->
                        <div class="box-footer col-sm-offset-2">
                            <div class="col-xs-6">
                                <button type="submit" class="btn btn-primary">提 交</button>
                                <a class="btn btn-warning" href="__APP__/Admin/Order/elist" role="button">返 回</a>
                            </div>
                        </div>

                        <br>
                        <!-- /.box-footer -->
                    </form>
                </div>
              
            </section>
            <!-- /.content -->
        </div>
        <!-- /.content-wrapper -->
        <include file="Share:copyright" />
        <include file="Share:setting" />
    </div>
    <include file="Share:js" />
    <script type="text/javascript">
        $("#OrderManager").addClass("active");
        $("#experience_add").addClass("active");
        $(function() {
            addressInit('proviceId', 'cityId', 'districtId', '', '', '');
			
            $("select#dict_id").change(function(){
				zhi = $(this).find("option:selected").attr("rel-code");
				$("input#dict_code").val(zhi);
			});
        });
    
    </script>
</body>

</html>
